+2008-08-29 Christian Dywan <christian@imendio.com>
+
+ Bug 549810 – Memory leaks in printing code
+
+ * gtk/gtkprintjob.c (gtk_print_job_set_property):
+ * modules/printbackends/file/gtkprintbackendfile.c
+ (output_file_from_settings):
+ * modules/printbackends/test/gtkprintbackendtest.c
+ (output_test_from_settings): free some temporary strings.
+ Patch by Yevgen Muntyan.
+
2008-08-29 Michael Natterer <mitch@imendio.com>
* gtk/gtkwidget.h: move the gtk_widget_get_parent() and
switch (prop_id)
{
case PROP_TITLE:
+ g_free (priv->title);
priv->title = g_value_dup_string (value);
break;
if (locale_name != NULL)
{
- path = g_build_filename (g_get_current_dir (), locale_name, NULL);
+ gchar *current_dir = g_get_current_dir ();
+ path = g_build_filename (current_dir, locale_name, NULL);
g_free (locale_name);
uri = g_filename_to_uri (path, NULL, NULL);
g_free (path);
+ g_free (current_dir);
}
}
if (locale_name != NULL)
{
- path = g_build_filename (g_get_current_dir (), locale_name, NULL);
+ gchar *current_dir = g_get_current_dir ();
+ path = g_build_filename (current_dir, locale_name, NULL);
g_free (locale_name);
uri = g_filename_to_uri (path, NULL, NULL);
g_free (path);
+ g_free (current_dir);
}
}